﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using A2DFramework.AOPService.Core;
using A2DFramework.CacheService.CacheAttributes;
using A2DFramework.CacheService.CacheProvider.LocalCache;

namespace IoCTest.Core
{
    [AOPServiceEnabled]
    class OrderImpl : ContextBoundObject, IOrder
    {
        private string msg = "not changed message";
        public string GetMessage()
        {
            Thread.Sleep(2000);
            return string.Format("{0}-{1}", msg, DateTime.Now);
        }


        public void UpdateMessage(string userInput)
        {
            msg = userInput;
        }
    }
}
